package club.emergency.wechat.model.manager;

import club.emergency.wechat.model.GenericEntity;
import club.emergency.wechat.model.authorization.Authorization;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 管理员实体类
 * </p>
 *
 * @author jifujun
 * @since 2018-12-4
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Manager extends GenericEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 密码
     */
    private String password;

    /**
     * 角色名
     */
    private String roleName;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 部门id
     */
    private Long departmentId;

    /**
     * 部门code
     */
    private String departmentCode;

    /**
     * 权限列表
     */
    @TableField(exist = false)
    private List<Authorization> authorizationList;

    @TableField(exist = false)
    private Integer _slot;

}
